﻿<phone:PhoneApplicationPage 
    x:Class="BootyShaker.ShakeDesigner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:adduplex="clr-namespace:AdDuplex;assembly=AdDuplex.WindowsPhone"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded" >

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>



        </Grid.RowDefinitions>
        <!--ContentPanel - place additional content here-->

        <Canvas Name="canvas" >
            <Canvas.Background>
                <ImageBrush ImageSource="/BootyShaker;component/Images/chequerScreen.png" Stretch="None" />
            </Canvas.Background>
            <Image CacheMode="BitmapCache" Name="shakeImage" Stretch="Fill" DoubleTap="shakeImage_DoubleTap" MinHeight="200" MinWidth="200">

                <Image.RenderTransform>
                    <TransformGroup x:Name="grpTransform">
                        <MatrixTransform x:Name="previousTransform" />
                        <TransformGroup x:Name="currentTransform">
                            <!--<CompositeTransform x:Name="imgTransform"/>-->
                            <ScaleTransform x:Name="scaleTransform" />
                            <RotateTransform x:Name="rotateTransform" />
                            <TranslateTransform x:Name="translateTransform" />
                        </TransformGroup>
                    </TransformGroup>
                </Image.RenderTransform>
                <!--<toolkit:GestureService.GestureListener>
                    <toolkit:GestureListener 
                        Tap="OnTap" Hold="OnHold"
                        DragStarted="OnDragStarted" DragDelta="OnDragDelta" DragCompleted="OnDragCompleted"
                        Flick="OnFlick"
                        PinchStarted="OnPinchStarted" PinchDelta="OnPinchDelta" PinchCompleted="OnPinchCompleted"/>
                </toolkit:GestureService.GestureListener>-->

            </Image>

            <!--<my:AdControl  Canvas.Left="0" Canvas.Top="616" Height="80" Name="myAdControl" Width="480" VerticalAlignment="Bottom" ErrorOccurred="myAdControl_ErrorOccurred" AdRefreshed="myAdControl_AdRefreshed" />-->

        </Canvas>

        <!--<adRotator:AdRotatorControl x:Name="AdRotatorControl"
            	 DefaultSettingsFileUri="/BootyShaker;component/Advertising/defaultAdSettings.xml"
            	 SettingsUrl="http://www.motif.lt/bootyshaker/defaultAdSettings.xml"  
                  Visibility="Collapsed" VerticalAlignment="Bottom" IsEnabled="false"/>-->
        <adduplex:AdControl Grid.ColumnSpan="2" Grid.Row="2" x:Name="AdDuplex" 
                    AppId="10811" VerticalAlignment="Bottom"
                    />

    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" BackgroundColor="#FF86304B" ForegroundColor="Pink">
            <shell:ApplicationBar.Buttons>
                <shell:ApplicationBarIconButton x:Name="btnReset" IsEnabled="false" IconUri="/Icons/appbar.reset.rest.png" Text="Reset"  Click="btnReset_Click"/>
                <shell:ApplicationBarIconButton x:Name="btnAdd" IsEnabled="false" IconUri="/Icons/appbar.add.rest.png" Text="Add" Click="btnAdd_Click" />
                <shell:ApplicationBarIconButton x:Name="btnDone" IsEnabled="false" IconUri="/Icons/appbar.play.rest.png" Text="Done" Click="btnAccept_Click" />
                <shell:ApplicationBarIconButton x:Name="btnSave" IsEnabled="false" IconUri="/Icons/appbar.save.rest.png" Text="Save" Click="btnSave_Click" />
            </shell:ApplicationBar.Buttons>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="Save" IsEnabled="false" Click="ApplicationBarMenuItem_Click_1"></shell:ApplicationBarMenuItem>
                <shell:ApplicationBarMenuItem Text="Save As" IsEnabled="false" Click="ApplicationBarMenuItem_Click_3"></shell:ApplicationBarMenuItem>
                <shell:ApplicationBarMenuItem Text="Settings" IsEnabled="false" Click="ApplicationBarMenuItem_Click_2"></shell:ApplicationBarMenuItem>
                <shell:ApplicationBarMenuItem Text="Help" IsEnabled="false" Click="ApplicationBarMenuItem_Click"></shell:ApplicationBarMenuItem>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
